<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<html>
    <head>
    </head>
    <body>
        <form:form modelAttribute="formCommand" action="${pageContext.request.contextPath}/form/submit" method="get">
            文本框：<form:input path="t"></form:input><br/>
            密码框：<form:password path="p" showPassword="true"></form:password><br/>
            文本域：<form:textarea path="ta" rows="5" cols="20"></form:textarea><br/>
            <%--隐藏表单--%>
            <form:hidden path="h"></form:hidden>
            复选框：<form:checkbox path="c" value="1" label="吃"></form:checkbox>
                   <form:checkbox path="c" value="2" label="玩"></form:checkbox>
                   <form:checkbox path="c" value="3" label="睡"></form:checkbox>
                   <form:checkboxes path="cs" items="${map}"></form:checkboxes>
                   <%--<form:checkboxes path="us" items="${users}" itemValue="id" itemLabel="age"></form:checkboxes>--%>
                   <form:checkboxes path="us" items="${users}" itemValue="id" itemLabel="age" element="li"></form:checkboxes><br/>
            单选按钮：<form:radiobutton path="r" value="1" label="aaa"></form:radiobutton>
                    <form:radiobutton path="r" value="2" label="bbb"></form:radiobutton>
                    <form:radiobuttons path="rs" items="${map}"></form:radiobuttons>
                    <form:radiobuttons path="us2" items="${users}" itemLabel="username" itemValue="id"></form:radiobuttons><br/>
            下拉列表：<form:select path="s">
                        <form:option value="1" label="aaa"></form:option>
                        <form:option value="2" label="bbb"></form:option>
                        <form:option value="3" label="ccc"></form:option>
                    </form:select>
                    <%--<form:select path="ss" items="${map}"></form:select>--%>
                    <%--<form:select path="ss">--%>
                        <%--<form:options items="${map}"></form:options>--%>
                    <%--</form:select>--%>
                    <form:select path="ss">
                        <form:option value="-1" label="---请选择---"></form:option>
                        <form:options items="${map}"></form:options>
                    </form:select>

            <form:button>提交</form:button>
        </form:form>

    </body>
</html>
